package com.weicp.demo.service;

import com.weicp.demo.domain.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringTest {
    public static void main(String[] args) {
        ApplicationContext factory = new FileSystemXmlApplicationContext("classpath:applicationContext.xml");
        User user = (User) factory.getBean("user");
        System.out.println(user);
    }
}
